package com.dap.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by wangmin on 2019/2/22.
 */
public abstract class LongStringIdUtil {
    private final static Logger logger = LoggerFactory.getLogger(LongStringIdUtil.class);

    public static String generateId() {
        try {
            return String.valueOf(IdGenerator.generateId());
        } catch (Throwable throwable) {
            logger.warn("", throwable);
            return UUIDGenerator.generateUUID();
        }
    }

}
